﻿function OpenSubFolder(CurrentDir, SubFolder) {
    //WorkingPath = document.getElementById("txtWorkingPath").value;
    rValue = Portal.CMS.MediaManager.ServerSideOpenSubFolder(CurrentDir, SubFolder).value;
    window.open(rValue,'_self');
    //document.getElementById("divMediaManagerMain").innerHTML = rValue;
}

function ClientGoRoot() {
    rValue = Portal.CMS.MediaManager.ServerSideGoRoot().value;
    window.open(rValue, '_self');
    //document.getElementById("divMediaManagerMain").innerHTML = rValue;
}

function ClientUploadFile(UploadPath) {
    rValue = Portal.CMS.MediaManager.GetUploadUrl(UploadPath).value;
    window.open(rValue, '_blank');
}


function ClientSync(DirPath, SyncFile) {
    rValue = Portal.CMS.MediaManager.ServerSideSync(DirPath, SyncFile).value;
    alert(rValue);
}

function ClientDeleteFile(DeleteFile) {
    if (confirm('Bạn đã chắc chắn xóa file này chưa?') == false) retủn;
    rValue = Portal.CMS.MediaManager.ServerSideDeleteFile(DeleteFile).value;
    alert(rValue);
}